<?php defined('InShopNC') or exit('Access Invalid!');?>
<!doctype html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;?>">
<title><?php echo $output['html_title'];?></title>
<meta name="keywords" content="<?php echo $output['seo_keywords']; ?>" />
<meta name="description" content="<?php echo $output['seo_description']; ?>" />
<meta name="author" content="ShopNC">
<meta name="copyright" content="ShopNC Inc. All Rights Reserved">
<?php echo html_entity_decode($GLOBALS['setting_config']['qq_appcode'],ENT_QUOTES); ?>
<?php echo html_entity_decode($GLOBALS['setting_config']['sina_appcode'],ENT_QUOTES); ?>
<?php echo html_entity_decode($GLOBALS['setting_config']['share_qqzone_appcode'],ENT_QUOTES); ?>
<?php echo html_entity_decode($GLOBALS['setting_config']['share_sinaweibo_appcode'],ENT_QUOTES); ?>
<style type="text/css">
body { _behavior: url(<?php echo TEMPLATES_PATH;?>/css/csshover.htc);}</style>
<link href="<?php echo TEMPLATES_PATH;?>/css/layout.css" rel="stylesheet" type="text/css">
<link href="<?php echo TEMPLATES_PATH;?>/css/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo RESOURCE_PATH;?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_PATH;?>/js/zzsc.js"></script>
<!--[if IE]>
<script src="<?php echo RESOURCE_PATH;?>/js/html5.js"></script>
<![endif]-->
<!--[if IE 6]>
<script src="<?php echo RESOURCE_PATH;?>/js/IE6_PNG.js"></script>
<script>
DD_belatedPNG.fix('.pngFix');
</script>
<script> 
// <![CDATA[ 
if((window.navigator.appName.toUpperCase().indexOf("MICROSOFT")>=0)&&(document.execCommand)) 
try{ 
document.execCommand("BackgroundImageCache", false, true); 
   } 
catch(e){} 
// ]]> 
</script> 
<![endif]-->
<script>
COOKIE_PRE = '<?php echo COOKIE_PRE;?>';_CHARSET = '<?php echo strtolower(CHARSET);?>';SITEURL = '<?php echo SiteUrl;?>';
</script>
<script type="text/javascript" src="<?php echo RESOURCE_PATH;?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_PATH;?>/js/jquery-ui/jquery.ui.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_PATH;?>/js/jquery.validation.min.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_PATH;?>/js/common.js" charset="utf-8"></script>
<script type="text/javascript">
	var PRICE_FORMAT = '< ?php echo $lang['currency'];?>%s';
$(function(){
	//search
	$("#details").children('ul').children('li').click(function(){
		$(this).parent().children('li').removeClass("current");
		$(this).addClass("current");
		$('#search_act').attr("value",$(this).attr("act"));
	});
	var search_act = $("#details").find("li[class='current']").attr("act");
	$('#search_act').attr("value",search_act);
	$("#keyword").blur();
});
</script>
</head>
<body>
<div class="intop_pic"><script type="text/javascript" src="<?php echo SiteUrl;?>/index.php?act=adv&op=advshow&ap_id=373"></script></div>

<?php require_once template('layout/layout_top');?>
<div class="logo_search">
	<div class="logo"><a href="<?php echo SiteUrl;?>"><img src="<?php echo ATTACH_COMMON.DS.$GLOBALS['setting_config']['site_logo']; ?>" title="返回首页" alt="返回首页"></a></div>
	 <div class="search_big">
    	<ul>
        	<li class="search_sp">热搜：</li>
		  <?php if(is_array($output['hot_search']) and !empty($output['hot_search'])) { foreach($output['hot_search'] as $val) { ?>
       <li> <a href="index.php?act=search&keyword=<?php echo urlencode($val);?>"><?php echo $val; ?></a></li>
        <?php } }?>
		 </ul>
		       <div class="clear"></div>
			   
        <div class="search_box">
	<!--	 <div class="details" id="details">
		 <ul class="tab">
        <li class="search_butn1" < ?php if($_GET['act'] != 'shop_search' ) echo 'class="current"'; ?> act="search">搜商品</li>
        <li class="search_butn2" < ?php if($_GET['act'] == 'shop_search') echo 'class="current"'; ?> act="shop_search">搜店铺</li>
      </ul>
	  </div>-->
		  <form action="index.php" onSubmit="return searchInput();" method="get">
        	 <input name="keyword" id="keyword" type="text" class="s_input" value="<?php echo $lang['nc_searchdefault']; ?>" onFocus="searchFocus(this)" onBlur="searchBlur(this)" maxlength="60" x-webkit-speech lang="zh-CN" onwebkitspeechchange="foo()" x-webkit-grammar="builtin:search" />
            <input class="search_butn1" name="act" type="submit" class="" id="" value="search" >
            <input class="search_butn2" name="act" type="submit" class="" id="" value="shop_search" >
			  </form>
        </div>
    </div> 
	    <div class="sl_dd">
    	<a href="index.php?act=member&op=order"><img src="<?php echo TEMPLATES_PATH;?>/images/dd_pic1.jpg"></a>
    </div>
</div>

<div class="inb_main">
<div class="nav-wrap">
  <div class="nav">
    <div class="goods">
      <div>
        <h2> <a><?php echo $lang['nc_all_goods_class'];?></a> </h2>
      </div>
      <div class="all-goods">
	   <?php
        if(is_array($output['show_goods_class']) && count($output['show_goods_class']) != 0){ $sign = 1;
        foreach ($output['show_goods_class'] as $tkey=>$val){
        if ($val['gc_parent_id'] != '0') break;
        ?> 
        <div class="item <?php if($sign==1){?>btnone<?php }?>" <?php if($sign>7){?>style="display:none;"<?php }?>>
          <div class="product">
            <h3 style="background:url(upload/brand/<?php echo $val['gc_pic']?>) no-repeat 45px 9px"> <a href="index.php?act=search&cate_id=<?php echo $val['gc_id'];?>"><?php echo $val['gc_name']?></a> </h3>
            <s <?php if($sign==1){?>style="display:block;"<?php }?>></s> </div>
          <div class="product-wrap pos<?php echo $sign;?>"> 
		 <?php 
              if($val['child'] != ''){
              foreach(explode(',',$val['child']) as $k){
              ?>  
            <dl>
            	<dt>
                	<a href="index.php?act=search&cate_id=<?php echo $k;?>" title="<?php echo $output['show_goods_class'][$k]['gc_name']?>" ><?php echo $output['show_goods_class'][$k]['gc_name']?></a>
                </dt>
                <dd>
				 <?php 
                if($output['show_goods_class'][$k]['child'] != ''){
                foreach(explode(',',$output['show_goods_class'][$k]['child']) as $key){
                ?>
                	 <a href="index.php?act=search&cate_id=<?php echo $key;?>" title="<?php echo $output['show_goods_class'][$key]['gc_name']?>" ><?php echo $output['show_goods_class'][$key]['gc_name']?></a>
                <?php } } ?>
                </dd>
            </dl>
       
			  <?php } } ?>
            
          </div>
        </div>
		<?php $sign++; } }  ?>
      
        <div class="left_nav_more"><a href="index.php?act=category" title="<?php echo $lang['nc_check_more_class'];?>"><?php echo $lang['nc_check_more_class'];?></a></div>   
      </div>
    </div>
    
    <ul class="nav-list cf">
	   <li><a  <?php echo $output['index_sign'] == 'index'&&$output['index_sign'] != '0'?'class="on"':''; ?>href="<?php echo SiteUrl;?>"><?php echo $lang['nc_index'];?></a></li>
	   <!-- 优惠券  >
	      <li < ?php echo $output['index_sign'] == 'coupon'&&$output['index_sign'] != '0'?'class="current"':'class="link"'; ?>><a href="< ?php echo SiteUrl;?>/index.php?act=coupon"><span>< ?php echo $lang['nc_coupon'];?></span></a></li>
		    <!-- 优惠券  -->

	 <?php if(!empty($output['nav_list']) && is_array($output['nav_list'])){?>
    <?php foreach($output['nav_list'] as $nav){?>
    <?php if($nav['nav_location'] == '1'){?>
    <li><a  <?php if($output['index_sign'] == $nav['nav_id']){echo 'class="on"';} ?> <?php if($nav['nav_new_open']){?>target="_blank" <?php }?> href="<?php switch($nav['nav_type']){
    	case '0':echo $nav['nav_url'];break;
    	case '1':echo ncUrl(array('act'=>'search','nav_id'=>$nav['nav_id'],'cate_id'=>$nav['item_id']));break;
    	case '2':echo ncUrl(array('act'=>'article','nav_id'=>$nav['nav_id'],'ac_id'=>$nav['item_id']));break;
    	case '3':echo ncUrl(array('act'=>'activity','activity_id'=>$nav['item_id'],'nav_id'=>$nav['nav_id']), 'activity');break;
    }?>"><?php echo $nav['nav_title'];?></a></li>
    <?php }?>
    <?php }?>
    <?php }?>
	   <!--  积分商城  -->
	     <?php if (C('points_isuse') && C('pointshop_isuse')){ ?>
    <li <?php echo $output['index_sign'] == 'pointprod'&&$output['index_sign'] != '0'?'class="current"':'class="link"'; ?>><a href="<?php echo SiteUrl;?>/index.php?act=pointprod"><span>积分商城</span></a></li>
    <?php } ?>
	  <!--  积分商城  -->
    </ul>
    
   
      <!--banner-->
   
  <!--bannerend-->
 </div>
</div>
</div>
  
	  

<?php require_once($tpl_file);?>
<?php require_once template('footer');?>
</body>
</html>
